package Sort.面试.华为;

import java.util.Scanner;

/**
 * 十六进制转化为十进制
 */
public class HexadecimalConversion {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        while(in.hasNext()){
            String str = in.next().substring(2);
            System.out.println(Integer.parseInt(str,16));
        }

        int a = 0x21;
        int b = 021;
    }

}
